<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:ec="http://www.b2cexpress.com.br/ecommerce"
    	xmlns:s="http://www.suricattus.com.br/jsf/ui"
		xmlns:sf="http://www.suricattus.com.br/jsf/fn"
    	xmlns:composite="http://java.sun.com/jsf/composite">
    	
	<composite:interface>
		<composite:attribute name="active" required="true" />
	</composite:interface>
	
	<composite:implementation>
		
		<ul class="nav nav-tabs">
			<li class="#{cc.attrs.active eq 'dashboard' ? 'active' : ''}">
				<h:link outcome="pretty:dashboardGrupo">
					<h:outputText value=" #{labels['botao.dashboard']}" />
				</h:link>
			</li>
			
			<s:hasAnyRole roles="ROLE_CADASTRO_GRUPO">
				<li class="#{cc.attrs.active eq 'cadastro' ? 'active' : ''}">
					<h:link outcome="pretty:novoGrupo">#{labels['botao.novo']}</h:link>
				</li>
				<s:hasAnyRole roles="ROLE_CADASTRO_GRUPO_PESQUISA">
					<li class="#{cc.attrs.active eq 'pesquisa' ? 'active' : ''}">
						<h:link outcome="pretty:pesquisarGrupo">#{labels['botao.pesquisar']}</h:link>
					</li>
				</s:hasAnyRole>
				<s:hasAnyRole roles="ROLE_CADASTRO_GRUPO_SINCRONISMO">
					<li class="#{cc.attrs.active eq 'sincronismo' ? 'active' : ''}">
						<h:link outcome="pretty:sincronizarTodosGrupos">#{labels['botao.sincronizar']}</h:link>
					</li>
				</s:hasAnyRole>
			</s:hasAnyRole>
			
		</ul>
		
	</composite:implementation>
	
</html>
